package com.toubutu.audio.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.toubutu.audio.admin.dto.UserRoleBindDto;
import com.toubutu.audio.admin.entity.UserRole;
import com.toubutu.audio.admin.vo.RoleVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 戒燥
 * @since 2023-09-30
 */
@Mapper
public interface UserRoleMapper extends BaseMapper<UserRole> {

    List<RoleVo> getUserRoleList(Long userId);

    void deleteByUserId(Long userId);

    void bindUserRole(@Param("dto") UserRoleBindDto dto);
}
